Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert discriminated naming change #143

Merged
merged 2 commits into from
May 3, 2024

Conversation

praneetloke
Copy link
Member

This PR reverts most of the changes from #140. Additionally, this PR also drops the prefix for discriminated resources discovered through POST endpoints.

@@ -615,7 +611,9 @@ func (o *OpenAPIContext) gatherResource(
return errors.Errorf("%s not found in api schemas for discriminated type in path %s", schemaName, apiPath)
}

discriminatedResourceName := resourceName + ToPascalCase(discriminatedValue)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except for this change, the rest are from the revert.

@praneetloke praneetloke merged commit 99f14d1 into main May 3, 2024
1 check passed
@praneetloke praneetloke deleted the praneetloke/revert-discriminated-naming branch May 3, 2024 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant